package com.juicygames.framework.touch;

import android.view.MotionEvent;

public class EntityTouchAction extends AbstractTouchAction {
	
	private static EntityTouchAction instance = null;
	
	public static EntityTouchAction getInstance(MotionEvent event) {
		if (instance == null) {
			instance = new EntityTouchAction(event);
		} else {
			instance.setEvent(event);
			instance.setX(event.getX());
			instance.setY(event.getY());
		}
		return instance;
	}
	
	private EntityTouchAction(MotionEvent event) {
		super(event);
	}

}
